#ifndef RECVFILEBOX_H
#define RECVFILEBOX_H

#include <QWidget>
#include <QFileInfo>
#include <QDesktopServices>
#include <QUrl>
#include "UserLayer/GUI/ChatWidget/FileBox.h"

namespace Ui {
class RecvFileBox;
}

class RecvFileBox : public FileBox
{
    Q_OBJECT

public:
    explicit RecvFileBox(QWidget *parent = nullptr);
    ~RecvFileBox();
    void setAvatar(const QPixmap avatar) override;
    void setImg(const QPixmap img) override;
    void setText(const QString text) override;
    QSize getSize()override;

private slots:
    void on_btn_recvimg_clicked();
protected:
    void mousePressEvent(QMouseEvent *event) override;
signals:
private:
    Ui::RecvFileBox *ui;

};

#endif // RECVFILEBOX
